﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Xml.Serialization;

namespace iTeachSoft.CoreObjects
{
    public class Slide
    {
        public string BackgroundPath { get; set; }
        public List<BaseSlideObject> SlideObjects { get; set; }
        public string AudioFilePath { get; set; }
        public int AudioStartAfeter { get; set; }
        public float ShowSlideForSeconds { get; set; }
        public System.Drawing.Size Size { get; set; }
        public Project ParentProject { get; set; }

        public string PreviewFileName { get; private set; }

        public bool PreserveRation { get; set; }

        public Slide()
        {
            SlideObjects = new List<BaseSlideObject>();
            ShowSlideForSeconds = 1f;

            PreviewFileName = Guid.NewGuid().ToString() + ".png";
        }
    }
}
